From: Felix Fietkau Date: Fri, 12 Sep 2025 09:26:49 +0000 (+0200) Subject: netifd: fix misplaced ")" X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=2a85440bcd82caf66b29428145affb30388a4994;p=project%2Fnetifd.git netifd: fix misplaced ")" Fixes memory corruption issue Fixes: https://github.com/openwrt/netifd/issues/54 Signed-off-by: Felix Fietkau --- diff --git a/ucode.c b/ucode.c index 291bb3e..553a72e 100644 --- a/ucode.c +++ b/ucode.c @@ -442,7 +442,7 @@ uc_netifd_process(uc_vm_t *vm, size_t nargs) prefix_str = ucv_string_get(prefix); - res = ucv_resource_create_ex(vm, "netifd.process", (void **)&up, 1, sizeof(*up) + strlen(prefix_str + 1)); + res = ucv_resource_create_ex(vm, "netifd.process", (void **)&up, 1, sizeof(*up) + strlen(prefix_str) + 1); if (!res) return NULL;